.PHONY: release
release:
	@-rm -rf out/bin
	@-mkdir -p out/bin
	@GOOS="darwin" GOARCH="amd64" go build -o out/bin/barge
	@tar -czvf out/barge_darwin_amd64.tar.gz out/bin/barge
	@GOOS="darwin" GOARCH="arm64" go build -o out/bin/barge
	@tar -czvf out/barge_darwin_arm64.tar.gz out/bin/barge
	@GOOS="linux" GOARCH="amd64" go build -o out/bin/barge
	@tar -czvf out/barge_linux_amd64.tar.gz out/bin/barge
	@GOOS="linux" GOARCH="arm64" go build -o out/bin/barge
	@tar -czvf out/barge_linux_arm64.tar.gz out/bin/barge
	@-rm -rf out/bin